﻿import random
# def morethan(n):
#     if n>1500:
#         print('大于1500')
#     else:
#         print('不大于1500')
# morethan(2)

# def generatenum():
#     a=''
#     list=[]
#     while True:
#         if len(list)==4:
#             break
#         else:
#             k=str(random.randint(0,10))
#             if k not in list:
#                 list.append(k)
#     return a.join(list)
# print(generatenum())

# def gettype(n):
#     times=0
#     listB=[]
#     for items in n:
#         if times%2==1:
#             # print(n[times])
#             listB.append(items)
#         times+=1
#     return listB
        

    
# listA=['2','1','3','awdj','奶我等哈我','王大夫']
# print(gettype(listA))
    
def count(strA):
    upper=0
    lower=0
    num=0
    for items in strA:
        if items.isupper:
            upper+=1
        elif items.islower:
            lower+=1
        elif items.isnumeric:
            num+=1
        return {'number':num,'upper':upper,'lower':lower}
a='I Love python 11111'
print(count(a))






